/**
 * 
 * @author Andrew
 * Class to represent the Player, or Captain of the ship
 */
public class Captain implements Person {
	enum Profession{FISHER, CARPENTER, DOCTOR}
	private String name;

	private Profession prof;
	/**
	 * Constructor
	 */
	public Captain(){
		name = "";
	}
	
	/**
	 * overloaded constructor
	 * @param name
	 * @param prof
	 */
	public Captain(String name, Profession prof){
		this.name = name;
		this.prof = prof;
	}
	/**
	 * @return Captain name
	 */
	public String getName(){
		return name;
	}
	/**
	 * set Captain name
	 * @param name
	 */
	public void setName(String name){
		this.name = name;
	}
	/**
	 * @return Captain profession
	 */
	public Profession getProf(){
		return prof;
	}
	/**
	 * @return name of captain's profession
	 */
	public String getProfName(){
		if(prof == null)
			return null;
		else if(prof == Profession.FISHER)
			return "Fisherman";
		else if(prof == Profession.CARPENTER)
			return "Carpenter";
		else
			return "Doctor";
	}
	/**
	 * Set Captain's profession
	 * @param prof
	 */
	public void setProf(String prof){
		if(prof.equals("Fisher"))
			this.prof = Profession.FISHER;
		else if(prof.equals("Carpenter"))
			this.prof = Profession.CARPENTER;
		else
			this.prof = Profession.DOCTOR;
	}
}
